import React, { Component } from 'react'

export default class Login extends Component {
  handleLogin = () => {
    // console.log(this.props)
    this.props.history.push('/home', {
      name: 'zs',
      age: 18,
    })
  }
  render() {
    return (
      <div>
        <input type="text" placeholder="请输入用户名" /> <br />
        <input type="password" placeholder="请输入密码" /> <br />
        <button onClick={this.handleLogin}>登录</button>
      </div>
    )
  }
}
